import Service from "./axios";  
interface ResponseData{
    code:number,
    data:any,
    message:string
}
//get 请求
function get(url:string,params?:any):Promise<ResponseData>{
    return Service.get(url,{params});
}
//post 请求
function post(url:string,data?:any):Promise<ResponseData>{
    return Service.post(url,data);
}

export {get,post}